//
//  BLTimeAxisBaseLine.h
//  BLTimeAxis
//
//  Created by dg on 2025/4/17.
//

#import <Foundation/Foundation.h>
#import "BLTimeAxisComponent.h"

NS_ASSUME_NONNULL_BEGIN
/**
 底线
 */
@interface BLTimeAxisBaseLine : NSObject<BLTimeAxisComponent>

@property(nonatomic, assign) CGFloat fixedOffset;

@property(nonatomic, strong) UIColor *strokeColor;
@property(nonatomic, assign) CGFloat strokeSize;

/// 当前比例，默认为1.0
@property (nonatomic, assign) CGFloat currentScale;
/// 最小比例
@property (nonatomic, assign) CGFloat minimumScale;
/// 最大比例，只能在内部更改
@property (nonatomic, assign) CGFloat maximumScale;
/// 1比1时 可见视图内最多的小时数；   倒数 乘以 可见视图尺寸 即 每小时对应的宽度 像素/小时
@property (nonatomic, assign) CGFloat oneToOneScaleMatchMaxHoursInVisible;

- (void)acceptVisitor:(id<BLTimeAxisVisitor>)visitor;

- (CGFloat)aSecondOfPixelWithViewWidth:(CGFloat)width;

@end

NS_ASSUME_NONNULL_END
